var params={
    url:interfaces.comment_get,
    data:{
        token:$.cookie('token'),
        paperId:$.getUrlParam("paperId"),
        currentPageNo: pageing.init_currentPageNo,
        pageSize: pageing.init_pageSize
    },
    template:source,
    tbodyId:'content'
}
$(function(){
    $('body').delegate('.sendbtn','click',function(){
        var datastr=$(this).attr('data');
        var dataarr=datastr.split('-');
        if(dev) {
            console.info(dataarr);
        }
        var tt=$(this).parent().children('textarea').val();
        getDataThenRefresh( interfaces.comment_add, '{"token":"'+ $.cookie('token')+'","paperId":'+dataarr[0]+',"preCommentId":'+(dataarr[1]==""?null:dataarr[1])+',"content":"'+tt+'"}' , "addcomment",dataarr[0]);
    });
    if(dev) {
        console.info("comment init js");
    }
    var paperId=$.getUrlParam("paperId");
    if(dev) {
        console.info('paperId:', paperId);
    }
    $('#mainSend').attr('data',paperId+'-'+"");
    init_table();
});